package com.homework.Demo6_14.Work1.h5;

public class Div implements Computer{
    @Override
    public int computer(int n, int m) {
        int result=-1;
        try {
            System.out.println("除法");
            result= n/m;
        }catch(Exception e){
            e.printStackTrace();
            System.out.println(e.getMessage());
        }finally {
            return result;
        }

    }
}
